package cn.zy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 启动类
 */
//@ComponentScan + @EnableAutoConfiguration
@SpringBootApplication //声明当前类是SpringBoot项目的启动类
//扫描mapper接口,生成mapper接口的代理对象 - service中使用
@MapperScan("cn.zy.*.mapper")
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class);
    }
}
